<div class="deliveryexp price" <#if areaUseexp??&&areaUseexp==1 >style="display: none;"</#if>> 首重费用 
	<input type="text"  maxlength="6"  name="firstprice${areacount!''}" style="width: 60px;" value="${t_first!''}${check_first!''}${(tlist.typeAreaConfig.firstprice)!''}" class="input_text formula_input easyui-numberbox" <#if areacount??>data-options="required:true"</#if> />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		续重费用 <input type="text" maxlength="6"  name="continueprice${areacount!''}" value="${t_cont!''}${check_cont!''}${(tlist.typeAreaConfig.continueprice)!''}" style="width: 60px;" class="input_text formula_input easyui-numberbox"  <#if areacount??>data-options="required:true"</#if> />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
			<a href="javascript:;" class="easyui-linkbutton showexp">使用公式</a> 
</div>
<#if areaUseexp??&&areaUseexp==1 >
	<input type="hidden" value="1" name="useexp${areacount!''}">
	<#else>
	<input type="hidden" value="0" name="useexp${areacount!''}">
</#if>
<div class="deliveryexp despac" <#if !areaUseexp??||areaUseexp==0 >style="display: none;"</#if> >配送公式
	<input type="text"  name="expressions${areacount!''}" style="width: 200px;" value="${t_expression!''}${expression!''}${(tlist.typeAreaConfig.expression)!''}" class="input_text formula_input expressions" <#if !areaUseexp??||areaUseexp==0 >style="display: none;"</#if> />
	<a href="javascript:;" class="checkexp sysbtn easyui-linkbutton">验证</a>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="javascript:;" class="hideexp easyui-linkbutton">取消公式</a> 
</div>

<script type="text/javascript">
	$(function() {
		$(".showexp").click(function() {
			var parent = $(this).parent();
			Dlytype.price_set(parent, ".expressions", ".formula_input");
			parent.siblings("input").val(1);
		});
		$(".hideexp").click(function() {
			var parent = $(this).parent();
			Dlytype.price_set(parent, ".formula_input", ".expressions");
			parent.siblings("input").val(0);
		});

	});
</script>

